package com.study.youlai.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.youlai.system.model.entity.SysConfig;
import com.study.youlai.system.model.form.ConfigForm;
import com.study.youlai.system.model.vo.ConfigVO;
import org.mapstruct.Mapper;

/**
 * @ClassName: ConfigConverter
 * @Description: 系统配置对象转换器
 * @Author: li
 * @Date: 2025/1/15 19:04
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface ConfigConverter {

    Page<ConfigVO> convertToPageVo(Page<SysConfig> page);

    SysConfig toEntity(ConfigForm configForm);

    ConfigForm toForm(SysConfig entity);
}
